package com.kinyx.framework.utils;

import org.junit.Assert;
import org.junit.Test;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public class KStringUtils_Tester_capitalize {

	@Test
	public void test() {
		Assert.assertEquals(null, KStringUtils.capitalize(null));
		Assert.assertEquals(null, KStringUtils.capitalize("null"));

		Assert.assertEquals("", KStringUtils.capitalize(""));
		Assert.assertEquals(" ", KStringUtils.capitalize(" "));

		Assert.assertEquals(" null ", KStringUtils.capitalize(" null "));
		Assert.assertEquals("Foo", KStringUtils.capitalize("foo"));
		Assert.assertEquals(" foo ", KStringUtils.capitalize(" foo "));
		Assert.assertEquals("Foo", KStringUtils.capitalize("Foo"));
		Assert.assertEquals(" Foo ", KStringUtils.capitalize(" Foo "));
	}

}
